import { IPSModelObject } from '../../../ipsmodel-object';

/**
 * 获取模型调用钩子
 *
 * @author chitanda
 * @date 2022-03-07 19:03:44
 * @export
 * @interface IGetModel4ModelHookTap
 */
export interface IGetModel4ModelHookTap {
  /**
   * 查找对应模型
   *
   * @author chitanda
   * @date 2022-03-07 19:03:46
   * @param {IPSModelObject} model
   * @param {string} cls
   * @param {IModel} obj
   * @param {string} [tag]
   * @return {*}  {(IPSModelObject | undefined)} 当返回值不为空时，会停止后续钩子执行
   */
  getModel4(model: IPSModelObject, cls: string, obj: IModel, tag?: string): IPSModelObject | undefined;
}
